\version "2.16.0"
\include "deutsch.ly"

\include "pianoMvtI.ly"
\include "pianoMvtII.ly"
\include "pianoMvtIII.ly"
\include "celloMvtI.ly"
\include "celloMvtII.ly"
\include "celloMvtIII.ly"
\include "defs.ly"
\include "tutti.ly"

instrument = "Piano"

\paper
{
  obsolete-between-system-padding = #0.1  system-system-spacing #'padding = #(/ obsolete-between-system-padding staff-space)  score-system-spacing #'padding = #(/ obsolete-between-system-padding staff-space)
  %obsolete-between-system-space = #0.1  system-system-spacing #'basic-distance = #(/ obsolete-between-system-space staff-space)  score-system-spacing #'basic-distance = #(/ obsolete-between-system-space staff-space)
  ragged-last-bottom = ##t
}

\book
{
  \include "header.ly"
  \score			% Movement I
  {
    <<
				% uncomment cello cues for final production
      % \new Staff
      % \with
      % {
      %   fontSize = #-3
      %   \override StaffSymbol #'staff-space = #(magstep -3)
      % }
      % { \celloMvtI }
      \new PianoStaff
      <<
	\set PianoStaff.instrumentName = #"Piano "
        \new Staff="RH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
          \pianoRightMvtI
        }

        \new Dynamics = "dynamics" \pianoDynamicsMvtI

        \new Staff="LH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
%          << \pianoLeftMvtI \pianoPedalsMvtI >>
	  \pianoLeftMvtI
        }

        %\new Dynamics = "pedals" \pianoPedalsMvtI

        %\outlineMvtI
      >>
    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
	%following useful for crass staff beaming and slurring
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  \score			% Movement II
  {
    <<
				% uncomment for final
      % \new Staff
      % \with
      % {
      %   fontSize = #-3
      %   \override StaffSymbol #'staff-space = #(magstep -3)
      % }
      % { \celloMvtII }
      % \new PianoStaff
      <<
        \new Staff="RH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
          \pianoRightMvtII
        }

        \new Dynamics = "dynamics" \pianoDynamicsMvtII

        \new Staff="LH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
          << \pianoLeftMvtII \pianoPedalsMvtII >>
        }

        %\new Dynamics = "pedals" \pianoPedalsMvtII

        \outlineMvtII
      >>
    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  \score			% Movement III
  {
    <<
				% uncomment for final
      % \new Staff
      % \with
      % {
      %   fontSize = #-3
      %   \override StaffSymbol #'staff-space = #(magstep -3)
      % }
      % {
      %   << \celloMvtIII \outlineMvtIII >>
      % }
      \new PianoStaff
      <<
        \new Staff="RH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
          << \outlineMvtIII \pianoRightMvtIII >>
        }

        \new Dynamics = "dynamics" \pianoDynamicsMvtIII

        \new Staff="LH"
        {
          \accidentalStyle "modern"
          \set Staff.extraNatural = ##f
          << \outlineMvtIII \pianoLeftMvtIII \pianoPedalsMvtIII >>
        }

        %\new Dynamics = "pedals" \pianoPedalsMvtIII

      >>
    >>
    \layout
    {
      % [Convert-ly] The Dynamics context is now included by default.
      \context
      {
        \PianoStaff
        \accepts Dynamics
        \override VerticalAlignment #'forced-distance = #7
      }
    }
  }

%-----------------------------------------------------------------------------

  %midi
  \score
  {
    <<
      \new Staff
      {
        \set Staff.midiInstrument = "cello"
        \celloMvtI
        \celloMvtII
        \celloMvtIII
      }
      \new PianoStaff
      <<
        \new Staff="RH"
        {
          << \pianoRightMvtI \pianoDynamicsMvtI \pianoPedalsMvtI >>
          << \pianoRightMvtII \pianoDynamicsMvtII \pianoPedalsMvtII >>
          << \pianoRightMvtIII \pianoDynamicsMvtIII \pianoPedalsMvtIII >>
        }
        \new Staff="LH"
        {
          << \pianoLeftMvtI \pianoDynamicsMvtI \pianoPedalsMvtI >>
          << \pianoLeftMvtII \pianoDynamicsMvtII \pianoPedalsMvtII >>
          << \pianoLeftMvtIII \pianoDynamicsMvtIII \pianoPedalsMvtIII >>
        }
      >>
      {
        << \midiOutlineMvtI \outlineMvtI >>
        << \midiOutlineMvtII \outlineMvtII >>
        << \midiOutlineMvtIII \outlineMvtIII >>
      }
    >>
    \midi { }
  }
}
